#include "tip2.h"
#include "ui_tip2.h"
#include "game4.h"
#include <QPainter>
#include <QFont>
#include <QPixmap>
#include <QTimer>

tip2::tip2(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::tip2)
{
    ui->setupUi(this);
}

tip2::~tip2()
{
    delete ui;
}

void tip2::paintEvent(QPaintEvent *)
{
    QPainter painter(this);
    int x1=ui->p5frame->pos().x();
    int y1=ui->p5frame->pos().y();
    qh[0].load(":/resourse/p5.png") ;
    painter.drawPixmap(x1,y1,ui->p5frame->width(),ui->p5frame->height(),qh[0]);
}

void tip2::on_backpushButton_clicked()
{
    this->close();
//  Game4 *g=new Game4();
//  g->show();
}
